//
//  XMChatCreatVoice.h
//  XMJJ_zmy
//
//  Created by 丁浩 on 2025/7/5.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol XMChatCreatVoiceDelegate <NSObject>

- (void)creatVoiceSuccess:(NSString *)filePathStr;

@end

@interface XMChatCreatVoice : NSObject

@property (nonatomic, weak) id <XMChatCreatVoiceDelegate>delegate;
//@property(nonatomic, copy, readonly) NSString *recordedFilePath;

- (void)record;
- (void)stop;
- (void)cancel;

@end

NS_ASSUME_NONNULL_END
